#include "configinfo.h"

ConfigInfo::ConfigInfo(QObject *parent) : QObject(parent)
{

}

ConfigInfo::ConfigInfo(int portno, QString crexp, QString ifexp, int linksnum,
                       QString peerhost, int peerport, QString con, QString discon, int ftime)
{
    this->portNo=portno;
    this->crExplained=crexp;
    this->ifExplained=ifexp;
    this->linksNum=linksnum;
    this->peerHost=peerhost;
    this->peerPort=peerport;
    this->connect = con;
    this->disconnet = discon;
    this->freetime = ftime;
}

int ConfigInfo::getPortNo() const
{
    return portNo;
}

void ConfigInfo::setPortNo(int value)
{
    portNo = value;
}

QString ConfigInfo::getCrExplained() const
{
    return crExplained;
}

void ConfigInfo::setCrExplained(const QString &value)
{
    crExplained = value;
}

QString ConfigInfo::getIfExplained() const
{
    return ifExplained;
}

void ConfigInfo::setIfExplained(const QString &value)
{
    ifExplained = value;
}

int ConfigInfo::getLinksNum() const
{
    return linksNum;
}

void ConfigInfo::setLinksNum(int value)
{
    linksNum = value;
}

QString ConfigInfo::getPeerHost() const
{
    return peerHost;
}

void ConfigInfo::setPeerHost(const QString &value)
{
    peerHost = value;
}

int ConfigInfo::getPeerPort() const
{
    return peerPort;
}

void ConfigInfo::setPeerPort(int value)
{
    peerPort = value;
}

QString ConfigInfo::getConnect() const
{
    return connect;
}

void ConfigInfo::setConnect(const QString &value)
{
    connect = value;
}

QString ConfigInfo::getDisconnet() const
{
    return disconnet;
}

void ConfigInfo::setDisconnet(const QString &value)
{
    disconnet = value;
}

int ConfigInfo::getFreetime() const
{
    return freetime;
}

void ConfigInfo::setFreetime(int value)
{
    freetime = value;
}

int ConfigInfo::getProtocol() const
{
    return protocol;
}

void ConfigInfo::setProtocol(int value)
{
    protocol = value;
}
